﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTDichVu.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTDichVu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function getSel() {
        var editor = $find("<%=RadNoiDUngVN.ClientID %>");
        var str = editor.get_text();
        var selection = editor.getSelection();

        //get the selected text:
        var selectedText = selection.getText();

        if (selectedText) {
            if (str.search('-------') == -1)
                editor.pasteHtml(selectedText + '-------<br/>');
            else
                alert('Bạn đã lựa chọn nội dung tóm tắt');

        }

        else

            alert('Phải lựa chọn nội dung tóm tắt');


    }        

</script>
<script type="text/javascript">
    function getSelOther() {
        var editor = $find("<%=RadNoiDungOther.ClientID %>");
        var str = editor.get_text();
        var selection = editor.getSelection();

        //get the selected text:
        var selectedText = selection.getText();

        if (selectedText) {
            if (str.search('-------') == -1)
                editor.pasteHtml(selectedText + '-------<br/>');
            else
                alert('Bạn đã lựa chọn nội dung tóm tắt');

        }

        else

            alert('Phải lựa chọn nội dung tóm tắt');


    }
    
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
 <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/index.jpeg" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbDichVuManager" runat="server" Text="Quản lý dịch vụ " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                               
               <td valign="middle">
                    <div class="add-edit-del">
                            <asp:ImageButton ID="ImgSave" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-revert.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImgSave_Click" />
                            <br />
                            <asp:Label ID="lbSave" runat="server" Text="Lưu"></asp:Label>
                        
                    </div>
                </td>                              
                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
 <div style="padding:5px 0px 0px 0px" align="left">
        <div class="SanPham" >
            <a href="EHTFrontPage.aspx">
                <asp:Label ID="lbThongTinCongTy" runat="server" Text="Thông tin công ty"></asp:Label>
            </a>
        </div>        
        <div class="SanPham">
           <a href="EHTDichVu.aspx">
             <asp:Label ID="lbDichVu" runat="server" Text="Dịch vụ"></asp:Label>
           </a>
        </div>
         <div class="SanPham">
           <a href="EHTHoTro.aspx">
             <asp:Label ID="lbHoTro" runat="server" Text="Hỗ trợ"></asp:Label>
           </a>
        </div>
        <div class="SanPham">
           <a href="EHTImageCompany.aspx">
             <asp:Label ID="lbHinhANhCongTy" runat="server" Text="Hình ảnh công ty"></asp:Label>
           </a>
        </div>
    </div>
    <br />
    <div style="padding:10px 0px 0px 10px" align="left">
        <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
    </div>
     <div style="padding-top:10px">
        <table class="table" border="0" cellpadding="0" cellspacing="0">          
            <tr>
                <td colspan="2">
                    <asp:Label ID="lbDichVuVN" runat="server" Text="Dịch vụ"></asp:Label>
                </td>
               
                 <td colspan="2">
                    <asp:Label ID="lbDichVuOther" runat="server" Text="Dịch vụ (Other)"></asp:Label>
                </td>  
                 
            </tr>
            <tr>
                 <th colspan="2">
                    <telerik:RadEditor ID="RadNoiDUngVN" runat="server" Width="650px" Height="600">
                        <ImageManager ViewPaths="~/ImageDatas/News" />
                        </telerik:RadEditor> 
                        <div >
                              <%if (IsVN)
                                 { %>
                                     <input type="Button" onclick="getSel();return false;" value="Đọc thêm" />
                                 <%}
                             else
                                 {%>
                                     <input type="Button" onclick="getSel();return false;" value="Read More" />
                                 <%}
                              %>             
                          
                        </div>                             
                    </th>
                    <th colspan="2">
                        <telerik:RadEditor ID="RadNoiDungOther" runat="server" Width="650px" Height="600">
                            <ImageManager ViewPaths="~/ImageDatas/News" />
                        </telerik:RadEditor>  
                         <div >
                          <%if (IsVN)
                                 { %>
                                    <input type="Button" onclick="getSelOther();return false;" value="Đọc thêm" />
                                 <%}
                             else
                                 {%>
                                     <input type="Button" onclick="getSelOther();return false;" value="Read More" />
                                 <%}
                              %>     
                           
                        </div>                  
                    </th>
                 
            </tr>
        </table> 
    </div>
</asp:Content>
